home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 96
/
Amiga News 96.iso
/
amig_ad_os
/
avm
/
avminstall
/
rexx
/
usebracket.avm
< prev
next >
Wrap
Text File
|
1977-12-31
|
622b
|
34 lines
/* */
parse upper arg server commandToDo otherargs
/* select the server */
address value server
/* use the server */
'use'
/* use failed, then someone else is using the server, and we shouldn't
continue */
if rc ~= 0 then exit
'requiredevice' 'telephoneline'
avmbusy = getclip('AVMBusy')
if avmbusy = "" then call setclip('AVMBusy', '1')
else call setclip('AVMBusy', avmbusy + 1)
/* run the command */
address rexx 'avmrexx:' || commandToDo otherargs
/* voice mode */
'requiremode' 'voice'
'flushphonebuffer'
avmbusy = getclip('AVMBusy')
call setclip('AVMBusy', avmbusy - 1)
/* unuse the server */
'unuse'
exit